package com.fuxue.mapper;

import com.fuxue.dto.TitleDTO;
import com.fuxue.entity.Title;
import com.fuxue.vo.TitleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface TitleMapper {

@Select("select server_id,point,title from server where server_id = #{id}")
    TitleVO selectAllById(Integer id);

    List<Title> selectAll(String select );
@Update("update server set title = #{title} where server_id = #{serverId}")
    void update(TitleDTO titleDTO);
}
